-
Notifications
You must be signed in to change notification settings - Fork 2
chore: replace local exec with azapi action #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: replace local exec with azapi action #64
Conversation
PengyuanZhao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
kirklandnuts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @lokesh-vadlamudi, can you please confirm all of the prior behavior is maintained? Specifically, I'm concerned about whether the container app start is always triggered on every terraform apply (including subsequent applies)?
| triggers_replace = { | ||
| always_run = timestamp() | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This trigger_replace block ensures that this resource is always replaced on every terraform apply — i.e., this call is made during every terraform apply and the job will always execute immediately when terraform apply is run.
I don't see anything in the new code that would maintain this behavior. Can you please confirm that the behavior is maintained? If so, can you please also update the testing section in your PR description?
kirklandnuts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for addressing the issue @lokesh-vadlamudi - this LGTM 👍
Summary
Replace local exec with azapi action.
Starting container app job instantly using Azure api instead of Azure cli.
This change eliminates the need to install and authenticate azure cli, which helps when executing this tf module in CI.
How did you test this change?
We can see runs in az portal


Issue